package top.hcode.hoj.pojo.entity.coll;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 客观题选项
 * (coll_question_option)表实体类
 *
 * @author orangej
 * @since 2025-02-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("coll_question_option")
public class CollQuestionOption implements Serializable {

    private static final long serialVersionUID = 8865629140L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    private String collId;

    private String questionId;

    @ApiModelProperty(value = "选项序号", notes = "选项序号，大写英文字母，例如：A, B, C；填空题编号为数字，例如：1, 2")
    private String optionNum;

    private String content;

    private Integer sortOrder;

    @ApiModelProperty(value = "是否正确选项")
    private Boolean isAnswer;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    /*关联属性*/

}
